package com.aaa.three.controller;

import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.PatientDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PACKAGE_NAME: com.aaa.three.controller
 * @NAME: PatientDepartmentController
 * @USER: Tprairie
 * @DATE: 2022/2/18
 * @PROJECT_NAME: three
 */
@RestController
@RequestMapping("/hang")
public class PatientDepartmentController {
    @Autowired
    private PatientDepartmentService patientDepartmentServiceImpl;
    @RequestMapping("/listDepOne")
    public AjaxResult listDepartmentOne(){
        return patientDepartmentServiceImpl.listDepartmentOne();
    }
    @RequestMapping("/listDepTwo/{id}")
    public AjaxResult listDepartmentTwo(@PathVariable("id")Integer id){
        return patientDepartmentServiceImpl.listDepartmentTwo(id);
    }
}
